package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author liudo
 * @version 1.0
 * @project sky-take-out
 * @date 2024/2/25 09:24:12
 */
@Mapper
public interface OrderDetailMapper {
    /**
     * 插入批次
     *
     * @param orderDetailList 订单明细表
     */
    void insertBatch(List<OrderDetail> orderDetailList);


    /**
     * 选择列表按订单id
     *
     * @param orderIds 订单id
     * @return {@link List}<{@link OrderDetail}>
     */
    List<OrderDetail> selectListByOrderIds(List<Long> orderIds);
}
